package spec.ganlijuan.zuoye_qiu_1;

public class qiu {
    String mingcheng;
    String zhijing;
    String caizhi;
    String zhongliang;
    String shihe;//成员属性，变量

    void getInfo()
    {
        System.out.println("我的名称叫："+mingcheng);
        System.out.println("我的直径有："+zhijing);
        System.out.println("我的材质是："+caizhi);
        System.out.println("我的重量是："+zhongliang);
        System.out.println("适合我的人群有："+shihe);
        System.out.println(" ");

    }

    qiu(String mc, String zj, String cz, String zl, String sh)
    {
        mingcheng=mc;
        zhijing=zj;
        caizhi=cz;
        zhongliang=zl;
        shihe=sh;
    }
}
